import service from ".";

const borrowApi = {
    //查询所有
    selectAll() {
        return service.get('/admin/borrow');
    },
    //根据id查询
    selectByBoid(boid) {
        return service.get(`/admin/borrow/ByBoid/${boid}`);
    },
    //添加记录
    insert(borrow) {
        return service.post('/admin/borrow', borrow);
    },
    //删除记录
    deleteborrow(boid) {
        return service.delete(`/admin/borrow/${boid}`);
    },
    //归还记录
    updateborrow(borrow){
        return service.put('/admin/borrow',borrow);
    },
    //修改记录
    updateborrow1(borrow){
        return service.put('/admin/borrow/a', borrow);
    }
}
export default borrowApi;